﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Cwjk_SetKjkm_Ifram.aspx.vb" Inherits="PubProject.Cwjk_SetKjkm_Ifram" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<title>Cwjk_SetKjkm_Ifram</title>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<script language="javascript">
		//在线帮助文件
		    var _MyHelpfile = "/Cbgl/HELP/topics/财务人员/设置财务接口/设置辅助核算.html";
		
		function getCwjk(sText,sExport)
		{
			if (sText =="") return;
			
			var sPath = "";
			var rdNum = Math.random();
			switch (document.all("txtOperObject").value)
			{
				case "楼栋":
					sPath = "Cwjk_SetKjkm_MapBuild.aspx";
					break;
				case "房间":
					sPath = "Cwjk_SetKjkm_MapBuild.aspx";
					break;
				case "预约单":
					sPath = "Cwjk_SetKjkm_MapBuild2.aspx";
					break;
			}
			
			document.all("txtProjGUID").value = sText;
			sPath += "?rdnum=" + rdNum + "&projguid=" + escape(sText) +"&cwztguid=" + escape(document.all("txtCwztGUID").value) + "&bz=" + escape(document.all("txtBz").value) + "&kmtypeguid=" + escape(document.all("txtKmTypeGUID").value) + "&operobject=" + escape(document.all("txtOperObject").value);
			sPath += "&openroot=" + escape(document.all("txtOpenRoot").value) ;
			sPath += "&Application=" + escape(document.all("txtApplication").value) ;
			
			if(sExport!=undefined &&sExport!="")
			{
			   sPath += "&Export=" + escape(sExport);			
			}	
			
			showWin.location = sPath;
		}
		
		function window.onload()
		{
			var sPath = "";
			var rdNum = Math.random();
			
			switch (document.all("txtOperObject").value)
			{
				case "楼栋":
					sPath = "Cwjk_Work_ProjTree.aspx?cwztguid=" + escape(document.all("txtCwztGUID").value) + "&rdnum=" + rdNum;
					break;
				case "房间":
    			    getCwjk("00000000-0000-0000-0000-000000000000;00000000-0000-0000-0000-000000000000;0000;0");
					sPath = "Cwjk_Work_BuildTree.aspx?cwztguid=" + escape(document.all("txtCwztGUID").value) + "&rdnum=" + rdNum;
					break;
				case "预约单":
					sPath = "Cwjk_Work_ProjTree.aspx?cwztguid=" + escape(document.all("txtCwztGUID").value) + "&rdnum=" + rdNum;
					break;
			}
			
			if (sPath =="") return;
			
			sPath += "&Application=" + escape(document.all("txtApplication").value) ;
				
			showProj.location = sPath;
			
		    if( document.all("__Application") && document.all("__Application").value=="0101")
            {
                _MyHelpfile = "/Slxt/HELP/topics/财务管理/财务接口设置/设置辅助核算.html";
            }
		}
		
		</script>
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" rightMargin="0" MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<asp:textbox id="txtCwztGUID" runat="server" style="DISPLAY:none"></asp:textbox>
			<asp:textbox id="txtBz" runat="server" style="DISPLAY:none"></asp:textbox>
			<asp:textbox id="txtKmTypeGUID" runat="server" style="DISPLAY:none"></asp:textbox>
			<asp:textbox id="txtOperObject" runat="server" style="DISPLAY:none"></asp:textbox>
			<asp:textbox id="txtOpenRoot" runat="server" style="DISPLAY:none"></asp:textbox>
			<asp:textbox id="txtProjGUID" runat="server" style="DISPLAY:none"></asp:textbox>
			<asp:textbox id="txtApplication" runat="server" style="DISPLAY:none"></asp:textbox>
			<table style="TABLE-LAYOUT: fixed; FONT-SIZE: 9pt" height="100%" cellSpacing="0" cellPadding="0"
				width="100%" border="0">
				<tr>
					<td id="leftTD" vAlign="top" width="180"><iframe id="showProj" name="showProj" src="" frameBorder="no" width="100%"
							scrolling="no" height="100%"></iframe>
					</td>
					<td width="10"></td>
					<td vAlign="top"><iframe id="showWin" name="showWin" src="" frameBorder="no" width="100%" scrolling="no"
							height="100%"></iframe>
					</td>
				</tr>
			</table>
		</form>
	</body>
</HTML>
